package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 收件记录实体类
 */
@TableName("t_inbox")
public class InboxBean {
    /**收件记录id*/
    @TableId(value = "pk_inboxId",type = IdType.AUTO)
    private Integer inboxId;
    /**是否已读*/
    @TableField("i_isRead")
    private String isRead="未读";
    /**邮件对象*/
    @TableField(exist = false)
    private EmailBean email;
    /**邮件id*/
    @TableField("fk_emailId")
    private  String emailId;
//    /**收件人*/
//    @TableField(exist = false)
//    private Integer receiver;
    /**收件人id*/
    @TableField("fk_receiverId")
    private Integer receiverId;

    public InboxBean() {
    }

    public InboxBean(String emailId, Integer receiverId) {
        this.emailId = emailId;
        this.receiverId = receiverId;
    }

    public Integer getInboxId() {
        return inboxId;
    }

    public void setInboxId(Integer inboxId) {
        this.inboxId = inboxId;
    }

    public String getIsRead() {
        return isRead;
    }

    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public EmailBean getEmail() {
        return email;
    }

    public void setEmail(EmailBean email) {
        this.email = email;
    }

    public String getEmailId() {
        return emailId;
    }

    public void setEmailId(String emailId) {
        this.emailId = emailId;
    }

    public Integer getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Integer receiverId) {
        this.receiverId = receiverId;
    }

    @Override
    public String toString() {
        return "InboxBean{" +
                "inboxId=" + inboxId +
                ", isRead='" + isRead + '\'' +
                ", email=" + email +
                ", emailId='" + emailId + '\'' +
                ", receiverId=" + receiverId +
                "}\n";
    }
}
